﻿
@{
    ViewBag.Title = "Dangnhap";
    Layout = "~/Views/Shared/Dangnhap.cshtml";
}

@if (Session["LoginUserID"] != null)
{
    Response.Redirect("~/Trangchu/Index");
}

<div class="Logo"> <img src="../images/banner_QNU_en_ok2.png" /> </div>
<div class="Khungdangnhap">
    <div class="Top">
        <ul>
            <li> <h1>ĐĂNG NHẬP</h1>  </li>
        </ul>

    </div>
    <div class="Khungdangnhap-1">
        <div class="Khungdangnhap-2">
            <div class="Left">
                <div class="Left-A">
                    <ul>
                        <li><img src="../images/icon_trangchu.png" /><a href=@Url.Action("Index","Trangchu")>Trang Chủ</a></li>
                    </ul>
                    <ul>
                        <li><img src="../images/icon_thuvien.png" /><a href="http://117.3.146.91/opac/">Thư Viện</a></li>
                    </ul>
                    <ul>
                        <li><img src="../images/icon_thongbao.png" /><a href="">Thông Báo</a></li>
                    </ul>
                </div>
                <div class="Left-B">
                    <ul>
                        <li><img src="../images/icon_elearning.jpg" /><a href="http://el.qnamuni.edu.vn/">eLearning</a></li>
                    </ul>
                    <ul>
                        <li><img src="../images/icon_diendan.png" /><a href="">Diễn Đàn</a></li>
                    </ul>
                    <ul>
                        <li><img src="../images/icon_dangky.png" /><a href=""> Hướng dẫn Đăng Ký</a></li>
                    </ul>
                </div>
            </div>
            <div class="Right">
                <div class="Right-dangnhap">
                      @using (Html.BeginForm("Dangnhap", "User", FormMethod.Post))
                            { 
                    <ul style="padding:0">
                        <li style="color:red; list-style-type:none; "> Tài khoản: @Html.TextBox("masv")</li>
                        <br />
                        <li style="color: red; list-style-type: none; ">Mật khẩu: @Html.Password("matkhau")</li>
                        <br />
                        <li>
                            <input style="margin-left:92px; width:100px; " id="login" type="submit" value="Đăng nhập" />
                            <a href=@Url.Action("Quenmatkhau","User")> Quên Mật Khẩu?</a>
                        </li>                        
                    </ul>
                            }
                </div>
            </div>
        </div>
    </div>
</div>

<div class="Khungdangnhap">
    <div class="Top">
        <ul>
            <li> <h1>THÔNG BÁO</h1>  </li>
        </ul>

    </div>
    <div class="Khungdangnhap-1">
        <div class="Khungdangnhap-2">
            <div class="Left-tb">
 @if (Session["noidung"] != null)
{
    string chuoi = Session["noidung"].ToString();
    string htbao;
    int len = chuoi.Length;

    if (chuoi.Length <= 400)
    {
        htbao = @chuoi + "...";
    }
    else
    {
        htbao = @chuoi.Substring(0, 400) + "...";
    }
     <a style="text-decoration:none" href="@Url.Action("Chitietthongbao", "Trangchu", new { type="cttbdn",id2=0})">
                <p style="text-align:left;font-family:Verdana,Arial; font-size:11pt; font-weight:bold; color:#114c8b; margin-top:0pt;">@Html.Raw(Session["tieude"].ToString()) </p>
     </a>



    <a style="text-decoration:none" href="@Url.Action("Chitietthongbao", "Trangchu", new { type="cttbdn",id2=0})">
                <p style="text-align: justify; font-family: Arial,Verdana; font-size: 10pt; color:#000000">@Html.Raw(@htbao) </p>
    </a>



    <a style="text-decoration:none" href="@Url.Action("Chitietthongbao", "Trangchu", new { type="cttbdn",id2=0})"> 
                 <p style="text-align:right;font-family:Arial,Verdana;color:#114c8b;;font-size:10pt;"> Xem chi tiết tại đây >>>  </p>
    </a>


}
else if (Session["noidung"] == null)
{
 <p style="text-align:left;font-family:Verdana,Arial; font-size:11pt; font-weight:bold; color:#114c8b; margin-top:0pt;">Hiện tai chưa có thông báo.</p>
}

        </div>
           
        </div>
    </div>
</div>



@*<div class="Thongbao">
    <div class="Thongbao-Top">
        <ul>
            <li> <h1>THÔNG BÁO</h1>  </li>
        </ul>

    </div>
    <div class="Thongbao-1"></div>
</div>*@
